package com.xsir.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xsir.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author xsir
 * @date 2020/9/9
 */
@Repository
public interface ArticleMapper extends BaseMapper<Article> {
    /**
     * 插入一条数据，并返回主键，主键映射到Article的id属性中
     */
    int insertKey(Article article);
}
